import React, { Component } from 'react'

export default class Login extends Component {
  getData() {
    this.http('/api/getnew')
      .then(res => {
        console.log(res);
      })
  }
  render() {
    return (
      <div>
        <p>login</p>
        <button onClick={()=>this.getData()}>获取数据</button>
      </div>
    )
  }
}
